package com.sand.service;

import com.sand.entity.HouseEntity;
import com.sand.util.PageModel;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;

public interface IHouseService {
    HashMap<String,Object> queryHouseById(int id);
    PageModel<HashMap<String, Object>> queryHouseLimit(int limit, int page, int showWi, String condition);
    List queryHouseImgs(int id);
    HashMap<String,Object> queryOptionById(int id);
    PageModel<HashMap<String, Object>> queryHouseByUserIdLimit(int limit, int page,String condition);

    boolean addHouse(MultipartFile file, MultipartFile[] files, String data, HttpServletRequest request);
    boolean updateHouse(String data);
    boolean delHouse(int rid);

    boolean updateHouseStatus(int id,int status);
    //========================lyl======================
    //通过房屋id获取房子的信息
    HouseEntity queryHouseData(int hid);




}
